﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Space_Cleaner.SpaceCleaner
{
    class SC_Star : SC_SpaceObject
    {
        private float alpha;

        public SC_Star(Vector2 _position, Texture2D _texture, float _size, float _alpha)
            : base(_position, _texture)
        {
            this.size = _size;
            this.alpha = _alpha;
            this.rotationVel = 0.001f;
        }

        public override void draw(SpriteBatch _spriteBatch, SC_Display _display)
        {
            Vector2 relativePosition = _display.getRelativePosition(position);
            _spriteBatch.Draw(texture, relativePosition, null, Color.White, rotation, textureCenter, _display.Scale * size, SpriteEffects.None, 0f);
        }
    }
}
